import Vue from 'vue'
import App from './App.vue'
import router from './router'
import { use } from "echarts/core";
import { CanvasRenderer } from "echarts/renderers";
import { LineChart, BarChart, PieChart } from "echarts/charts";
import {
  GridComponent,
  TooltipComponent,
  LegendComponent
} from "echarts/components";
import VChart from "vue-echarts";

use([
  GridComponent,
  CanvasRenderer,
  LineChart,
  BarChart,
  PieChart,
  TooltipComponent,
  LegendComponent
]);

Vue.config.productionTip = false
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI)

Vue.component('VChart',VChart)

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
